VERSION 5.00
Begin VB.Form Compiler 
   Appearance      =   0  'Flat
   BackColor       =   &H80000005&
   BorderStyle     =   0  'None
   Caption         =   "X-Bot: Compiling Bot"
   ClientHeight    =   3720
   ClientLeft      =   2475
   ClientTop       =   3585
   ClientWidth     =   7485
   ControlBox      =   0   'False
   Icon            =   "Compiler.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   PaletteMode     =   1  'UseZOrder
   ScaleHeight     =   3720
   ScaleWidth      =   7485
   Visible         =   0   'False
   Begin VB.CommandButton Command1 
      BackColor       =   &H00FFC0C0&
      Caption         =   "&Cancel"
      DisabledPicture =   "Compiler.frx":000C
      DownPicture     =   "Compiler.frx":6A9E
      Height          =   255
      Left            =   5880
      MaskColor       =   &H00FFFFFF&
      Style           =   1  'Graphical
      TabIndex        =   2
      Top             =   120
      Visible         =   0   'False
      Width           =   1455
   End
   Begin VB.Image ProgressBar 
      Appearance      =   0  'Flat
      BorderStyle     =   1  'Fixed Single
      Height          =   255
      Left            =   0
      Stretch         =   -1  'True
      Top             =   3480
      Width           =   375
   End
   Begin VB.Shape Shape1 
      Height          =   3725
      Left            =   0
      Top             =   0
      Width           =   7490
   End
   Begin VB.Label Label1 
      Alignment       =   2  'Center
      BackStyle       =   0  'Transparent
      Caption         =   "Compiling Bot..."
      BeginProperty Font 
         Name            =   "Times New Roman"
         Size            =   36
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00C00000&
      Height          =   975
      Left            =   0
      TabIndex        =   1
      Top             =   2280
      Width           =   7455
   End
   Begin VB.Label lblBuilding 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "Gathering Data..."
      BeginProperty Font 
         Name            =   "Arial Black"
         Size            =   9.75
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H0000C0C0&
      Height          =   270
      Left            =   0
      TabIndex        =   0
      Top             =   3240
      Width           =   1830
   End
End
Attribute VB_Name = "Compiler"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Private Sub Command1_Click()
Load Window
GentleOpen Me 'Window.Visible = True
Unload Me
End Sub

Private Sub Form_Load()
On Error Resume Next

'Load Images
Me.Icon = xsplash.Icon

Me.Picture = xsplash.Picture
ProgressBar.Picture = xsplash.ConstructionImage.Picture

Me.Left = (Screen.Width - Me.Width) / 2
Me.Top = (Screen.Height - Me.Height) / 2

Window.Visible = False
GentleOpen Me ' Me.Visible = True
'lblBuildingBot.Caption = "Currently building bot: " & Window.lstProfile
DoEvents

lblBuilding = "Building bot-solutions.3.0.conf..."
Window.CompileFile "bot-solutions.3.0.conf"
DoEvents
ProgressBar.Width = Me.Width / 2

'lblBuilding = "Building Eggdrop.conf..."
Window.CompileFile "eggdrop.conf"
DoEvents

lblBuilding = "Executing Bot..."

' ==================================================================
ContinueRun:

DoEvents
'MsgBox "Process completed successfully." & Chr(13) & Chr(10) & Chr(13) & Chr(10) & "Your bot is now running.", vbInformation + vbOKOnly, "Bot Compilation Successful"
Load Window
Window.Visible = True
DoEvents
Unload Me

Exit Sub
End Sub


Private Sub Form_Unload(Cancel As Integer)
GentleClose Me
End Sub

